package com.bank.service.bank.impl;

import com.bank.dao.bank.BankDao;
import com.bank.entity.BankVip;
import com.bank.entity.user.UserXx;
import com.bank.service.bank.BankServicve;
import com.bank.utils.ParamCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BankServiceImpl implements BankServicve {
    @Autowired
    private BankDao bankDao;


    @Override
    public List<BankVip> selectBank(ParamCondition p) {
        return bankDao.selectBank(p);
    }

    @Override
    public UserXx getOneUserXx(String khdh) {
        return bankDao.getOneUserXx(khdh);
    }

    @Override
    public void updatetg(String khdh) {
        bankDao.updatetg(khdh);
    }

    @Override
    public void updatewtg(String khdh) {
        bankDao.updatewtg(khdh);
    }

    @Override
    public List<BankVip> selectwtg(ParamCondition p) {
        return bankDao.selectwtg(p);
    }

    @Override
    public int countBank() {
        return bankDao.countBank();
    }

    @Override
    public List<BankVip> selectwfk(ParamCondition p) {
        return bankDao.selectwfk(p);
    }

    @Override
    public int countBankwfk() {
        return bankDao.countBankwfk();
    }

    @Override
    public int countBankyfk() {
        return bankDao.countBankyfk();
    }

    @Override
    public List<BankVip> selectyfk(ParamCondition p) {
        return bankDao.selectyfk(p);
    }

    @Override
    public void updatefk(String khdh) {
        bankDao.updatefk(khdh);
    }

    @Override
    public int countBankwtg() {
        return bankDao.countBankwtg();
    }
}
